<?php

namespace IDock\Insurance\LIHI\Request;

use IDock\IDock\IDockEnums;
use IDock\Insurance\LIHI\LIHIEnums;
use IDock\Insurance\LIHI\Request\AllLIHIRequest;
use IDock\Insurance\LIHI\Response\UploadFileQueryResponse;
use IDock\Insurance\LIHI\Response\UploadFileResponse;
use IDock\Visitor\Premium\PremiumInquiryVisitor;
use IDock\Visitor\UploadFileVisitor;

class UploadFileQueryRequest extends AllLIHIRequest
{
    public $route = 'cp/upload/queryDocType/';

    protected $response = UploadFileQueryResponse::class;

    protected $urlTip = '投保资料查询';

    protected $inLog = true;

    /**
     * @var  UploadFileVisitor $visitor
     */
    protected $visitor;

    public function generate(): array
    {
        return [
            'biInquiryNo' => $this->visitor->biInquiryNo,
            'ciInquiryNo' => $this->visitor->ciInquiryNo,
        ];
    }
}
